package nc.ui.ps.settle;

import java.util.Vector;

import nc.itf.ps.settle.ISettle;
import nc.itf.ps.settle.ISettle_yf;
import nc.itf.pu.inter.IPuToIc_SettleImpl;
import nc.vo.ps.settle.StockVO;
import nc.vo.pub.BusinessException;
import nc.vo.pub.lang.UFBoolean;
import nc.vo.pub.lang.UFDate;

public class SettleHelper  {
private  static String beanName=ISettle.class.getName();
private  static String beanName_yf=ISettle_yf.class.getName();

public static java.util.Vector getIUnitWeightAndVolume(nc.vo.ps.settle.IinvoiceVO[] p0) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.getIUnitWeightAndVolume(p0);
	return (java.util.Vector)result;
 } 

public static nc.vo.ps.settle.StockVO[] queryStock(java.lang.String p0,nc.vo.pub.query.ConditionVO[] p1) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.queryStock(p0,p1);
	if(result == null)
		return null;
	else
		return (nc.vo.ps.settle.StockVO[])result;
 } 

public static java.util.ArrayList onDiscard(java.util.ArrayList p0) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.onDiscard(p0);
	return (java.util.ArrayList)result;
 } 

public static java.util.ArrayList querySettleBodyBatch(java.lang.String p0,java.lang.String[] p1,java.lang.String[] p2,nc.vo.pub.lang.UFBoolean p3) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.querySettleBodyBatch(p0,p1,p2,p3);
	return (java.util.ArrayList)result;
 } 

public static boolean isCodeDuplicateForSettle(java.lang.String p0,java.lang.String p1,java.lang.String p2) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	boolean result=bo.isCodeDuplicateForSettle(p0,p1,p2);
	return result;
 } 

public static java.util.ArrayList doSaleBalance(java.util.ArrayList p0) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.doSaleBalance(p0);
	return (java.util.ArrayList)result;
 } 

public static java.util.Vector getCustIDAndNameFromVendor(java.lang.String p0) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.getCustIDAndNameFromVendor(p0);
	return (java.util.Vector)result;
 } 

public static java.util.ArrayList queryStockInSalesBatch(java.lang.String p0,java.lang.String[] p1,java.lang.String[] p2,java.lang.String[] p3) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.queryStockInSalesBatch(p0,p1,p2,p3);
	return (java.util.ArrayList)result;
 } 

public static void doNoneBalance(nc.vo.ps.settle.SettlebillVO p0,nc.vo.ps.settle.StockVO[] p1,nc.vo.pi.InvoiceVO[] p2,java.lang.String p3,java.lang.String p4,java.lang.String p5,java.lang.String p6) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	bo.doNoneBalance(p0,p1,p2,p3,p4,p5,p6);
 } 

public static java.util.ArrayList getVendorNameAndInvByBaseIDBatch(java.lang.String[] p0,java.lang.String[] p1,java.lang.String[] p2) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.getVendorNameAndInvByBaseIDBatch(p0,p1,p2);
	return (java.util.ArrayList)result;
 } 

public static void discardSettlebillSpecially(nc.vo.pi.InvoiceVO p0,java.lang.String p1) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	bo.discardSettlebillSpecially(p0,p1);
 } 

public static java.util.ArrayList doStockToInvoiceSettle(java.lang.String p0,nc.vo.pub.lang.UFDate p1,java.lang.String p2,java.lang.String p3,java.lang.String p4,nc.vo.pi.InvoiceVO p5,nc.vo.ic.pub.bill.GeneralBillHeaderVO[] p6,nc.vo.ic.pub.bill.GeneralBillItemVO[] p7,nc.vo.ps.estimate.GeneralBb3VO[] p8,java.lang.String p9,java.lang.String p10,nc.vo.pub.lang.UFBoolean p11) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.doStockToInvoiceSettle(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11);
	return (java.util.ArrayList)result;
 } 

public static java.lang.String[] getCorpIDs() throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.getCorpIDs();
	if(result == null)
		return null;
	else
		return (java.lang.String[])result;
 } 

public static boolean querySettlebillStatusSpecially(nc.vo.pi.InvoiceVO p0) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	boolean result=bo.querySettlebillStatusSpecially(p0);
	return result;
 } 

public static nc.vo.ps.settle.SettlebillItemVO[] querySettleBody(java.lang.String p0,java.lang.String p1,java.lang.String p2) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.querySettleBody(p0,p1,p2);
	if(result == null)
		return null;
	else
		return (nc.vo.ps.settle.SettlebillItemVO[])result;
 } 

public static java.util.Vector getSUnitWeightAndVolume(nc.vo.ps.settle.StockVO[] p0) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.getSUnitWeightAndVolume(p0);
	return (java.util.Vector)result;
 } 

public static java.util.ArrayList queryAllInvoiceForManual(java.util.ArrayList p0) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.queryAllInvoiceForManual(p0);
	return (java.util.ArrayList)result;
 } 

public static nc.vo.ps.settle.StockVO[] queryEndStock(java.lang.String p0,nc.vo.pub.query.ConditionVO[] p1) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.queryEndStock(p0,p1);
	if(result == null)
		return null;
	else
		return (nc.vo.ps.settle.StockVO[])result;
 } 

public static java.util.ArrayList queryDetailBatchForDispose(java.lang.String p0,java.lang.String[] p1,java.lang.String[] p2,java.lang.String[] p3) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.queryDetailBatchForDispose(p0,p1,p2,p3);
	return (java.util.ArrayList)result;
 } 

public static nc.vo.ps.settle.SaledataVO[] getRefSaleInvoice(nc.vo.ps.settle.SaledataVO[] p0) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.getRefSaleInvoice(p0);
	if(result == null)
		return null;
	else
		return (nc.vo.ps.settle.SaledataVO[])result;
 } 

public static java.util.ArrayList queryOrderDetailBatch(java.lang.String p0,nc.vo.ps.settle.StockVO[] p1) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.queryOrderDetailBatch(p0,p1);
	return (java.util.ArrayList)result;
 } 

public static java.util.Vector getCustIDAndNameFromCust(java.lang.String p0) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.getCustIDAndNameFromCust(p0);
	return (java.util.Vector)result;
 } 

public static void doFeeBalance(nc.vo.ps.settle.SettlebillVO p0,nc.vo.ps.settle.StockVO[] p1,nc.vo.ps.settle.FeeinvoiceVO[] p2,nc.vo.ps.settle.FeeinvoiceVO[] p3,nc.vo.ps.settle.FeeinvoiceVO[] p4,java.lang.String p5,java.lang.String p6) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	bo.doFeeBalance(p0,p1,p2,p3,p4,p5,p6);
 } 

public static nc.vo.ps.settle.StockVO[] queryStockDetailBatch(java.lang.String p0,java.lang.String[] p1) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.queryStockDetailBatch(p0,p1);
	if(result == null)
		return null;
	else
		return (nc.vo.ps.settle.StockVO[])result;
 } 

public static java.util.ArrayList doOrderToInvoiceSettle(nc.vo.pi.InvoiceVO[] p0,java.util.ArrayList p1) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.doOrderToInvoiceSettle(p0,p1);
	return (java.util.ArrayList)result;
 } 

public static java.lang.String[] getAccountBankIDBatch(java.lang.String[] p0) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.getAccountBankIDBatch(p0);
	if(result == null)
		return null;
	else
		return (java.lang.String[])result;
 } 

public static java.util.ArrayList onAutoBalance(java.util.ArrayList p0) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.onAutoBalance(p0);
	return (java.util.ArrayList)result;
 } 

public static java.util.ArrayList queryAllInvoiceForFee(java.util.ArrayList p0) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.queryAllInvoiceForFee(p0);
	return (java.util.ArrayList)result;
 } 

public static boolean doDirectInvoiceBalance(java.lang.String p0,nc.vo.pub.lang.UFDate p1,java.lang.String p2,java.lang.String p3,java.lang.String p4,nc.vo.pi.InvoiceVO p5,java.lang.String[] p6) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	boolean result=bo.doDirectInvoiceBalance(p0,p1,p2,p3,p4,p5,p6);
	return result;
 } 

public static nc.vo.ps.settle.IinvoiceVO[] queryInvoiceDetailBatch(java.lang.String p0,java.lang.String[] p1) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.queryInvoiceDetailBatch(p0,p1);
	if(result == null)
		return null;
	else
		return (nc.vo.ps.settle.IinvoiceVO[])result;
 } 

public static nc.vo.ps.settle.SettlebillVO[] querySettlebill(java.lang.String p0,nc.vo.pub.query.ConditionVO[] p1) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.querySettlebill(p0,p1);
	if(result == null)
		return null;
	else
		return (nc.vo.ps.settle.SettlebillVO[])result;
 } 

public static boolean isSettlebillCodeDuplicate(java.lang.String p0,java.lang.String p1) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	boolean result=bo.isSettlebillCodeDuplicate(p0,p1);
	return result;
 } 

public static java.util.ArrayList queryFeeDetailBatch(java.lang.String p0,java.lang.String[] p1) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.queryFeeDetailBatch(p0,p1);
	return (java.util.ArrayList)result;
 } 

public static java.util.ArrayList doOrderToICSettle(nc.vo.ic.pub.bill.GeneralBillVO[] p0) throws Exception{
	IPuToIc_SettleImpl bo = (IPuToIc_SettleImpl)nc.bs.framework.common.NCLocator.getInstance().lookup(IPuToIc_SettleImpl.class.getName());
	Object result=bo.doOrderToICSettle(p0);
	return (java.util.ArrayList)result;
 } 

public static void deleteVendorRecord(java.lang.String[] p0) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	bo.deleteVendorRecord(p0);
 } 

public static nc.vo.ps.settle.StockVO[] queryStockForNone(java.util.ArrayList p0,nc.vo.pub.query.ConditionVO[] p1) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.queryStockForNone(p0,p1);
	if(result == null)
		return null;
	else
		return (nc.vo.ps.settle.StockVO[])result;
 } 

public static void saveBillFromOutter1(java.util.ArrayList p0) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	bo.saveBillFromOutter1(p0);
 } 

public static void estimateForPartSettle(nc.vo.ps.settle.StockVO[] p0, nc.vo.ps.estimate.EstimateVO p4[], java.lang.String p1, nc.vo.pub.lang.UFDate p2, nc.vo.pub.lang.UFBoolean p3) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	bo.estimateForPartSettle(p0,p4,p1,p2,p3);
}

public static java.util.Vector queryCostfactorNO(java.lang.String p0,java.lang.String[] p1) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.queryCostfactorNO(p0,p1);
	return (java.util.Vector)result;
 } 

public static nc.vo.ps.settle.SettlebillVO querySettlebillByHeadKey(java.lang.String p0,java.lang.String p1) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.querySettlebillByHeadKey(p0,p1);
	return (nc.vo.ps.settle.SettlebillVO)result;
 } 

public static java.lang.String doManualBalance(java.util.ArrayList p0) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.doManualBalance(p0);
	return (java.lang.String)result;
 } 

public static nc.vo.ps.settle.SaledataVO[] querySaleinvoice(java.lang.String p0,nc.vo.pub.query.ConditionVO[] p1) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.querySaleinvoice(p0,p1);
	if(result == null)
		return null;
	else
		return (nc.vo.ps.settle.SaledataVO[])result;
 } 
 
public static Vector getInitParaForSalesUI(java.lang.String p0) throws Exception{
	ISettle bo = (ISettle)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName);
	Object result=bo.getInitParaForSalesUI(p0);
	if(result == null)
		return null;
	else
		return (Vector)result;
}

//zhwj
public static nc.vo.ps.settle.StockVO[] queryStock_yf(java.lang.String p0,nc.vo.pub.query.ConditionVO[] p1) throws Exception{
	ISettle_yf bo = (ISettle_yf)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName_yf);
	Object result=bo.queryStock_yfn(p0,p1);
	if(result == null)
		return null;
	else
		return (nc.vo.ps.settle.StockVO[])result;
 } 

//zhwj
public static java.util.ArrayList queryAllInvoiceForManual_yf(java.util.ArrayList p0) throws Exception{
	ISettle_yf bo = (ISettle_yf)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName_yf);
	Object result=bo.queryAllInvoiceForManual_yfn(p0);
	return (java.util.ArrayList)result;
 }


public static java.lang.String doManualBalance_yf(java.util.ArrayList p0) throws Exception{
	ISettle_yf bo = (ISettle_yf)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName_yf);
	Object result=bo.doManualBalance_yfn(p0);
	return (java.lang.String)result;
 } 


public static java.util.ArrayList onDiscard_yf(java.util.ArrayList p0) throws Exception{
	ISettle_yf bo = (ISettle_yf)nc.bs.framework.common.NCLocator.getInstance().lookup(beanName_yf);
	Object result=bo.onDiscard_yfn(p0);
	return (java.util.ArrayList)result;
 } 

}